package com.gupao.gupaoeduvippattern.pattern.observer.guava;

import com.google.common.eventbus.Subscribe;

/**
 * 引用google的guava插件。
 * 加上注解 @Subscribe，变成观察者
 *
 * @author 大帅
 * @description
 * @date 2020-12-02
 */
public class GuavaEvent {

    @Subscribe
    public void observer(String msg){
        System.out.println("执行GuavaEvent的Observer方法，传参为："+msg);

    }

    @Subscribe
    public void observer2(String msg){
        System.out.println("执行GuavaEvent的Observer2方法，传参为："+msg);

    }

}
